package com.guli.eduorder.utils;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @ClassName: WChatPayInfoUtil 
 * @Description: TODO 微信支付需要的工具类
 * @author: liuzg
 * @Date: 2021/3/31 14:46
 * @Version: v1.0
 */
@Component
public class WChatPayInfoUtil implements InitializingBean {

    @Value("${winxin.pay.appid}")
    private String appid;

    @Value("${winxin.pay.mch_id}")
    private String mch_id;

    public static String ACCESS_APP_ID;
    public static String ACCESS_MCH_ID;

    @Override
    public void afterPropertiesSet() throws Exception {
        ACCESS_APP_ID = appid;
        ACCESS_MCH_ID = mch_id;
    }
}
